// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueAMap from 'vue-amap'
import {Autocomplete, Button, CarouselItem, Col, Input, Row} from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import vueMeta from 'vue-meta'

Vue.use(Row);
Vue.use(Col);
Vue.use(Input);
Vue.use(Button);
Vue.use(CarouselItem);
Vue.use(Autocomplete);
Vue.use(VueAMap);

Vue.use(vueMeta, {
  keyName: 'metaInfo', // the component option name that vue-meta looks for meta info on.
  attribute: 'data-vue-meta', // the attribute name vue-meta adds to the tags it observes
  ssrAttribute: 'data-vue-meta-server-rendered', // the attribute name that lets vue-meta know that meta info has already been server-rendered
  tagIDKeyName: 'vmid' // the property name that vue-meta uses to determine whether to overwrite or append a tag
});

Vue.config.productionTip = false;

VueAMap.initAMapApiLoader({
  key: 'c128401fbd292e57bfd7398d7a67fa0c',
  plugin: ['AMap.Geolocation'],
  uiVersion: '1.0'
});

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>'
});
